<template>
	<div>
		<div class="title">周末去哪儿</div>
		<ul>
			<li class="item" v-for="item of weekendList" :key="item.id">
				<div class="item-img-wrapper">
					<img :src="item.imgUrl" :alt="item.title" class="item-img">
				</div>
				<div class=item-info>
					<p class="item-title">{{item.title}}</p>
					<p class="item-desc">{{item.desc}}</p>
				</div>
			</li>
		</ul>
	</div>
</template>
div+h1
<script>
export default{
	name:'HomeWeekEnd',
	props:{
		weekendList:Array
	}
	// data() {
	// 	return{
	// 		weekendList:[
	// 			{id:'0001',imgUrl:'http://img1.qunarzz.com/sight/source/1509/3a/e163a8e32517d9.jpg_r_640x214_4fd882d3.jpg',title:'边城秋色',desc:'不得不看的边城秋日之美'},
	// 			{id:'0002',imgUrl:'http://img1.qunarzz.com/sight/source/1505/fb/302620ed8350f8.jpg_r_640x214_25a07cb4.jpg',title:'长沙必游TOP10',desc:'到了长沙，一定要到这些地方走走'},
	// 			{id:'0003',imgUrl:'http://img1.qunarzz.com/sight/source/1603/56/33894ef918e1a8.jpg_r_640x214_a9de6b4e.jpg',title:'玩味童年',desc:'彩色的溶洞里水汽氤氲，又像仙境，又像武侠小说里大侠们的“练功房”，你也可以修炼一个“养生大法”哦。'},
	// 			{id:'0004',imgUrl:'http://img1.qunarzz.com/sight/source/1505/ae/11f076c6cb7c47.jpg_r_640x214_6f643489.jpg',title:'湖南省森林植物园',desc:'蓝天碧水、杂花生树。这里有4000多个品种的植物和动物，稀有的花木和珍贵的动物在这个人间天堂自由生长。'}

	// 		]
	// 	}
	// }
}
</script>
<style lang="stylus" scoped>
	@import '~styles/mixins.styl'
	.title
		line-height:.8rem
		background:#eee
		text-indent:.2rem
	.item
		margin-bottom:.1rem
		.item-img-wrapper
			overflow:hidden
			height:0
			padding-bottom:38%
			.item-img
				 width:100%
		.item-info
			 padding: .14rem .2rem .2rem .2rem;
			.item-title
				line-height:.48rem
				font-size:.28rem
				ellipsis()
			.item-desc
				line-height:.42rem
				color:#666
</style>